package com.zkthink.ceres.order.enums;

import lombok.Getter;

import java.util.Arrays;
import java.util.List;

/** 退货状态枚举类
 * -1-无退货 0-退货审核中 1-审核不通过 2-审核通过,待用户填写物流 3-退货中 4-退货完成，待退款 5-已退款 6-退款中 7-退款失败
 * @author JustArgo 2020/5/11 22:44
 * @return
 */
@Getter
public enum ReturnGoodsStatusEnum {

    NO_RETURN(-1,"无退货"),
    AUDITING(0,"退货审核中"),
    AUDIT_PASS(1,"审核通过"),
    AUDIT_REJECT(2,"审核不通过"),
    GOODS_RETURNING(3,"退货中"),
    GOODS_RETURN_SUC(4,"退货完成，待退款"),
    REJECT_REFUND(5,"退货完成，拒绝退款"),
    REFUND_SUC(6,"已退款"),
    REFUNDING(7,"退款中"),
    REFUND_FAIL(8,"退款失败"),
    CANCELED(9,"撤销申请"),
    ;

    /** 代表处于以下状态，商户可以发货 或 用户可确认收货 */
    public static final List<Integer> CAN_OPERATE_STATUS = Arrays.asList(AUDIT_REJECT.getCode(),CANCELED.getCode());

    private int code;

    private String desc;

    ReturnGoodsStatusEnum(int code, String desc){
        this.code = code;
        this.desc = desc;
    }


}
